package com.example.springbootdemo.api.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class RedirectController {
    /*@GetMapping("/{url1}/{url2}")
    public ModelAndView redirect(@PathVariable("url1") String url1,
                                 @PathVariable("url2") String url2
    ) {
        //判断是否登录
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName(url1 + "/" + url2);
        return modelAndView;
    }*/

/*    @GetMapping("/")
    public String main() {
        return "redirect:/index";
    }*/


}
